package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author CodeBoy
 * @email CodeBoy@gmail.com
 * @date 2023-07-12 16:02:53
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBasePage(Map<String, Object> params, Long catelogId);

    AttrRespVo getInfoById(Long attrId);

    void updateAttrById(AttrVo attr);

    PageUtils querySalePage(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getRelation(Long attrgroupId);

    PageUtils queryNoattrPage(Map<String, Object> params, Long attrgroupId);

    List<AttrEntity> getRelationAttr(Long attrGroupId);
}

